package org.codeart.proxy.example03;

public class CglibProxyTest {

    public static void main(String[] args) {
        UserServiceImpl userService = new UserServiceImpl();
        System.out.println(userService.getClass());

        UserLogProxy userLogProxy = new UserLogProxy();
        UserServiceImpl proxy = (UserServiceImpl) userLogProxy.getLogProxy(userService);
        System.out.println(proxy.getClass());
        System.out.println(proxy.selectUserList());
    }

}
